<script lang="ts" setup>
  import { UserOutlined } from '@ant-design/icons-vue';
  import Avatar from '@sscd/avatar';
</script>

<template>
  <div class="demo">
    <div class="demo-title">类型</div>
    <div class="demo-content">
      <Avatar>
        <template #icon>
          <UserOutlined />
        </template>
      </Avatar>
      <Avatar>U</Avatar>
      <Avatar>USER</Avatar>
      <Avatar src="https://joeschmoe.io/api/v1/random" />
      <Avatar style="color: #f56a00; background-color: #fde3cf">U</Avatar>
      <Avatar style="background-color: #87d068">
        <template #icon>
          <UserOutlined />
        </template>
      </Avatar>
    </div>
  </div>
</template>

<style lang="less" scoped>
  .ant-avatar {
    margin-right: 12px;
  }
</style>
